home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / gnulib / symm.md / _builtin_New.s < prev    next >
Text File  |  1990-08-10  |  2KB  |  145 lines

  1.     .file    "_builtin_New.s"
  2.     .data
  3.     .align    2
  4.     .globl    ___new_handler
  5. ___new_handler:
  6.     .long    _default_new_handler
  7.     .text
  8.     .align    2
  9.     .globl    ___builtin_vec_new
  10. ___builtin_vec_new:
  11.     jmp    .L16
  12. .L15:
  13.     movl    12(%ebp),%eax
  14.     incl    %eax
  15.     movl    %eax,-8(%ebp)
  16.     movl    $0,%eax
  17.     cmpl    %eax,8(%ebp)
  18.     jne    .L17
  19.     movl    -8(%ebp),%eax
  20.     imull    16(%ebp),%eax
  21.     pushl    %eax
  22.     call    ___builtin_new
  23.     popl    %ecx
  24.     movl    %eax,8(%ebp)
  25. .L17:
  26.     movl    8(%ebp),%eax
  27.     movl    %eax,-12(%ebp)
  28.     movl    $0,-4(%ebp)
  29.     jmp    .L21
  30. .L22:
  31.     pushl    8(%ebp)
  32.     call    *20(%ebp)
  33.     popl    %ecx
  34.     movl    16(%ebp),%eax
  35.     addl    %eax,8(%ebp)
  36.     incl    -4(%ebp)
  37. .L21:
  38.     movl    -8(%ebp),%eax
  39.     cmpl    %eax,-4(%ebp)
  40.     jl    .L22
  41. .L20:
  42.     movl    -12(%ebp),%eax
  43.     jmp    .L14
  44. /REGAL    0    NOFPA    NODBL
  45. /REGAL    63    NOFPA     AUTO     -4(%ebp)    4
  46. /REGAL    57    NOFPA     PARAM    8(%ebp)    4
  47. /REGAL    33    NOFPA     AUTO     -8(%ebp)    4
  48. /REGAL    21    NOFPA     PARAM    20(%ebp)    4
  49. /REGAL    21    NOFPA     PARAM    16(%ebp)    4
  50. /REGAL    6    NOFPA     AUTO     -12(%ebp)    4
  51. .L14:
  52.     leave
  53.     ret
  54. /USES    %eax
  55. .L16:
  56.     pushl    %ebp
  57.     movl    %esp,%ebp
  58.     subl    $12,%esp
  59.     jmp    .L15
  60. /DEF    ___builtin_vec_new;
  61.     .data
  62.     .text
  63.     .align    2
  64.     .globl    ___set_new_handler
  65. ___set_new_handler:
  66.     jmp    .L26
  67. .L25:
  68.     movl    ___new_handler,%eax
  69.     movl    %eax,-4(%ebp)
  70.     movl    $0,%eax
  71.     cmpl    %eax,8(%ebp)
  72.     jne    .L27
  73.     movl    $_default_new_handler,8(%ebp)
  74. .L27:
  75.     movl    8(%ebp),%eax
  76.     movl    %eax,___new_handler
  77.     movl    -4(%ebp),%eax
  78.     jmp    .L24
  79. /REGAL    0    NOFPA    NODBL
  80. /REGAL    6    NOFPA     AUTO     -4(%ebp)    4
  81. .L24:
  82.     leave
  83.     ret
  84. /USES    %eax
  85. .L26:
  86.     pushl    %ebp
  87.     movl    %esp,%ebp
  88.     subl    $4,%esp
  89.     jmp    .L25
  90. /DEF    ___set_new_handler;
  91.     .data
  92.     .text
  93.     .align    2
  94.     .globl    _set_new_handler
  95. _set_new_handler:
  96.     jmp    .L31
  97. .L30:
  98.     pushl    8(%ebp)
  99.     call    ___set_new_handler
  100.     popl    %ecx
  101.     jmp    .L29
  102. /REGAL    0    NOFPA    NODBL
  103. .L29:
  104.     leave
  105.     ret
  106. /USES    %eax
  107. .L31:
  108.     pushl    %ebp
  109.     movl    %esp,%ebp
  110.     jmp    .L30
  111. /DEF    _set_new_handler;
  112.     .data
  113.     .text
  114.     .align    2
  115. _default_new_handler:
  116.     jmp    .L34
  117. .L33:
  118.     pushl    $65
  119.     pushl    $.L36
  120.     pushl    $2
  121.     call    _write
  122.     addl    $12,%esp
  123.     pushl    $-1
  124.     call    __exit
  125.     popl    %ecx
  126. /REGAL    0    NOFPA    NODBL
  127. .L32:
  128.     leave
  129.     ret
  130. .L34:
  131.     pushl    %ebp
  132.     movl    %esp,%ebp
  133.     jmp    .L33
  134. /DEF    _default_new_handler;
  135.     .data
  136. .L36:
  137.  
  138.     .byte    0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x5f,0x6e,0x65
  139.     .byte    0x77,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x3a
  140.     .byte    0x20,0x6f,0x75,0x74,0x20,0x6f,0x66,0x20,0x6d,0x65
  141.     .byte    0x6d,0x6f,0x72,0x79,0x2e,0x2e,0x2e,0x20,0x61,0x61
  142.     .byte    0x61,0x69,0x69,0x69,0x69,0x69,0x69,0x65,0x65,0x65
  143.     .byte    0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65,0x65
  144.     .byte    0x65,0x21,0x0a,0x00
  145.